Skip to main content link. Accesskey S
  • Help
  • HCL Logo
  • HCL Lotus Expeditor wiki
  • THIS WIKI IS READ-ONLY. Individual names altered for privacy purposes.
  • HCL forums and blogs
  • Home
  • Product Documentation
  • Community Articles
Search
Community Articles > Expeditor Client for Desktop > Sample: Creating a JAX-WS client for Lotus Expeditor
  • Share Show Menu▼
  • Subscribe Show Menu▼

Recent articles by this author

Troubleshooting the IEOOP Process

The IEOOP process provides native assistance to the Lotus Expeditor web browser component. Depending on the technical depth of the problem, support may require additional technical data not collected by default.

An Overview of the OSGI Console

The OSGI console can assist with development investigation as well as with troubleshooting runtime errors in the field. Since the support team regularly makes use of the OSGI console, it's worth becoming familiar with basic commands.

Sample: Creating a JAX-WS client for Lotus Expeditor

While Lotus Expeditor does not directly provide support for JAX-WS, the Java 1.6 runtime provides the necessary support to use JAX-WS clients on the Lotus Expeditor platform.

IBM Lotus Expeditor Support Collecting ISA Data

Before opening a PMR with IBM support, please do the following to ensure that IBM support has required information to begin troubleshooting your system.

IBM Lotus Expeditor Support plugin_cusomization.ini Reference

During the maintenance of Expeditor, some plugincustomization.ini parameters may be added between releases. This document serves as a reference and list of additional parameters and usage.
Community articleSample: Creating a JAX-WS client for Lotus Expeditor
Added by ~Lily Minlusteretsi | Edited by ~Tip Desachekli on May 12, 2011 | Version 24
  • Actions Show Menu▼
expanded Abstract
collapsed Abstract
While Lotus Expeditor does not directly provide support for JAX-WS, the Java 1.6 runtime provides the necessary support to use JAX-WS clients on the Lotus Expeditor platform.
Tags: samples, web services
ShowTable of Contents
HideTable of Contents
  • 1 Overview
  • 2 Create the JAX-WS web service
  • 3 Create the JAX-WS client
  • 4 Deploy client code to an Expeditor client

Overview


To create a JAX-WS client, the following steps can be completed:
1. Create the JAX-WS web service.
2. Create the JAX-WS client.
3. Deploy client code to an Expeditor client.
Download Source Codeexternal link
 

Create the JAX-WS web service


Using Rational Application Developer (RAD), create a web service that will simply respond with date information to the caller.

Create a class file with the following contents.
package com.ibm.rcp.support.ws.remote;

import java.util.Calendar;

public class RemoteSystem {
    
    public String getSystemTime(){
        return Calendar.getInstance().getTime().toString();
    }
}

 
To generate a web service on the above bean, simply:
  1. Right mouse click the class file in the package navigator.
  2. Select Web Services -> Create Web Service.
  3. Select the "IBM WebSphere JAX-WS" web service runtime.
  4. Select the corresponding WebSphere Application server runtime.
  5. Complete the wizard using default values.
  6. Export the EAR project as an EAR.
  7. Install the enterprise application EAR in the WebSphere Application Server.

You should now be able to validate that a Web Service can be found at the following URL:

http://<your_was_server>:<port>/com.ibm.rcp.support.ws.remote/services/RemoteSystem

Create the JAX-WS client


Again in RAD, create the client code by completing:
  1. Create a Client Services Project.
  2. Locate the WSDL file within the Web Service project; usually in WEB-INF/wsdl.
  3. Copy the WSDL file into the Client Services project.
  4. Update the WSDL files, "wsdlsoap:address location" to reference your WebSphere server.
  5. Right mouse click the WSDL file and select Generate Client.
  6. Select the JAX-WS web service runtime.
  7. Select the WebSphere Application Server v7.0 server.
  8. Complete the wizard using default values.
 
Note that even though you selected the WebSphere runtime, deploying to Lotus Expeditor is possible.


 

Deploy client code to an Expeditor client


Given we have a simple skeleton, you will likely need to do additional development.  When importing the project into Eclipse, you will notice an error in the project. 



This is due to a RAD variable.  Simply remove the WAS_V7JAXWS_WEBSERVICES_THINCLIENT variable.



If you intend on using the variable and corresponding library, ensure that the JAR is either deployed to Expeditor as a plugin or contained within the JAX-WS Client Services plugin.

Next update the Activator class to test the plugin.

public void start(BundleContext context) throws Exception {
    super.start(context);
    plugin = this;
    
    RemoteSystemProxy proxy = new RemoteSystemProxy();
    System.out.println(proxy.getSystemTime());
}

  • Actions Show Menu▼


expanded Attachments (0)
collapsed Attachments (0)
Edit the article to add or modify attachments.
expanded Versions (24)
collapsed Versions (24)
Version Comparison     
VersionDateChanged by              Summary of changes
This version (24)May 12, 2011, 6:55:19 PM~Tip Desachekli  
23Oct 5, 2010, 3:19:13 PM~Lily Minlusteretsi  IBM contributor
22Oct 5, 2010, 1:02:23 PM~Lily Minlusteretsi  IBM contributor
21Sep 15, 2010, 5:37:20 PM~Lily Minlusteretsi  IBM contributor
20Sep 8, 2010, 4:58:33 PM~Lily Minlusteretsi  IBM contributor
18Sep 3, 2010, 8:22:32 PM~Lily Minlusteretsi  IBM contributor
17Sep 3, 2010, 8:21:48 PM~Lily Minlusteretsi  IBM contributor
16Sep 3, 2010, 8:21:30 PM~Lily Minlusteretsi  IBM contributor
15Sep 3, 2010, 8:17:02 PM~Lily Minlusteretsi  IBM contributor
14Sep 3, 2010, 8:16:35 PM~Lily Minlusteretsi  IBM contributor
13Sep 3, 2010, 8:16:07 PM~Lily Minlusteretsi  IBM contributor
12Sep 3, 2010, 8:05:55 PM~Lily Minlusteretsi  IBM contributor
12Sep 3, 2010, 8:05:55 PM~Lily Minlusteretsi  IBM contributor
11Sep 3, 2010, 12:56:52 AM~Lily Minlusteretsi  IBM contributor
10Sep 2, 2010, 9:18:00 PM~Lily Minlusteretsi  IBM contributor
9Sep 2, 2010, 8:52:01 PM~Lily Minlusteretsi  IBM contributor
8Sep 2, 2010, 8:51:25 PM~Lily Minlusteretsi  IBM contributor
7Sep 2, 2010, 8:51:00 PM~Lily Minlusteretsi  IBM contributor
6Sep 2, 2010, 8:50:34 PM~Lily Minlusteretsi  IBM contributor
5Sep 2, 2010, 8:48:55 PM~Lily Minlusteretsi  IBM contributor
4Sep 2, 2010, 8:48:20 PM~Lily Minlusteretsi  IBM contributor
3Sep 2, 2010, 8:47:16 PM~Lily Minlusteretsi  IBM contributor
2Sep 2, 2010, 8:43:24 PM~Lily Minlusteretsi  IBM contributor
1Sep 2, 2010, 8:35:35 PM~Lily Minlusteretsi  IBM contributor
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedAbout
  • HCL Software
  • HCL Digital Solutions community
  • HCL Software Support
  • BlogsDigital Solutions blog
  • Community LinkHCL Software forums and blogs
  • About HCL Software
  • Privacy
  • Accessibility